package com.aspose.sample.exporter;

public class MsWordExport {
	byte[] data;
	public void prepare(byte[] data)
	{
		this.data = data;		
	}
	
	public void prepare(String data)
	{
		this.data = data.getBytes();		
	}
	
	
	public void exportReportToWord() throws Exception{
		System.out.println( "using adaptee class :" + this.getClass());
		if(data == null){
			throw new Exception("data is null.");
		}
		System.out.println("generating msword report.");
		System.out.println(new String(data));
	}

}
